package com.dayu.finecomm.mongo.pojo;

public class StSwitch extends Basic<StSwitch> {

	private static final long serialVersionUID = 1L;

	/**
	 * 数据来源(ip和端口)
	 */
	private static final String FIELD_MIDWAYNO = "midwayno";

	/**
	 * 测站编码
	 */
	private static final String FIELD_STATIONNO = "stationno";

	/**
	 * 数据协议
	 */
	private static final String FIELD_VALUE = "value";

	/**
	 * 数据协议
	 */
	private static final String FIELD_VALUE1 = "value1";

	/**
	 * 数据格式
	 */
	private static final String FIELD_STATUS = "status";

	/**
	 * 数据正文
	 */
	private static final String FIELD_TIME = "time";

	/**
	 * 开始时间
	 */
	private static final String FIELD_PER_TIME = "pertime";

	/**
	 * 上次状态
	 */
	private static final String FIELD_PER_STATUS = "perstatus";

	/**
	 * 48期效率指针
	 */
	private static final String FIELD_EFFICIENCY_INDEX = "efficiencyindex";

	/**
	 * 48期效率
	 */
	private static final String FIELD_EFFICIENCY = "efficiency";

	public int getValue() {
		return getInt(FIELD_VALUE);
	}

	public void setValue(int value) {
		put(FIELD_VALUE, value);
	}

	public int getValue1() {
		return getInt(FIELD_VALUE1);
	}

	public void setValue1(int value) {
		put(FIELD_VALUE1, value);
	}

	public String getMidWayNo() {
		return getString(FIELD_MIDWAYNO);
	}

	public void setMidWayNo(String midwayno) {
		put(FIELD_MIDWAYNO, midwayno);
	}

	public String getStationNo() {
		return getString(FIELD_STATIONNO);
	}

	public void setStationNo(String stationno) {
		put(FIELD_STATIONNO, stationno);
	}

	public int getStatus() {
		return getInt(FIELD_STATUS);
	}

	public void setStatus(int status) {
		put(FIELD_STATUS, status);
	}

	public Long getTime() {
		return getLong(FIELD_TIME);
	}

	public void setTime(int time) {
		put(FIELD_TIME, time);
	}

	public Long getPerTime() {
		return getLong(FIELD_PER_TIME);
	}

	public void setPerTime(long time) {
		put(FIELD_PER_TIME, time);
	}

	public int getPerStatus() {
		return getInt(FIELD_PER_STATUS);
	}

	public void setPerStatus(int status) {
		put(FIELD_PER_STATUS, status);
	}

	public double[] getEfficiency() {
		Object obj = get(FIELD_EFFICIENCY);
		if (obj != null)
			return (double[]) obj;
		else
			return null;
	}

	public void setEfficiency(double[] efficiency) {
		put(FIELD_EFFICIENCY, efficiency);
	}

	public int getEfficiencyIndex() {
		return getInt(FIELD_EFFICIENCY_INDEX);
	}

	public void setPerStatusIndex(int index) {
		put(FIELD_EFFICIENCY_INDEX, index);
	}
}
